package com.succez.server.pojo;

import java.io.Serializable;

/**
 * 前端和后端的交互接口
 */
public class FileInfo implements Serializable {

    private static final long serialVersionUID = -1129007137144857607L;

    /**
     * 层级
     */
    private int marginGrade;

    /**
     * 唯一标识id
     */
    private String id;

    /**
     * 父唯一标识id
     */
    private String parentId;

    /**
     * 文件（目录）名
     */
    private String fileName;

    /**
     * 文件（目录）路径名（包含文件）
     */
    private String path;

    /**
     * 是否为目录
     */
    private boolean directory;

    /**
     * 文件内容
     */
    private String fileText;

    /**
     * 此次操作是否保存
     */
    private boolean save;

    /**
     * 此次保存操作状态
     */
    private boolean saveStatus;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public boolean isDirectory() {
        return directory;
    }

    public void setDirectory(boolean directory) {
        this.directory = directory;
    }

    public String getFileText() {
        return fileText;
    }

    public void setFileText(String fileText) {
        this.fileText = fileText;
    }

    public boolean isSave() {
        return save;
    }

    public void setSave(boolean save) {
        this.save = save;
    }

    public boolean isSaveStatus() {
        return saveStatus;
    }

    public void setSaveStatus(boolean saveStatus) {
        this.saveStatus = saveStatus;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public int getMarginGrade() {
        return marginGrade;
    }

    public void setMarginGrade(int marginGrade) {
        this.marginGrade = marginGrade;
    }

}